﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListProduct.aspx.cs" Inherits="TienTeTuong.ListProduct" %>
<div class = "TitleAdd">Thêm sản phẩm mới</div>
<ul  style = "list-style: none;">
    <li class="searchBg" style = "display:block;width:100%; background-image: none;">
        <input id="txt_searchPd" type="text" value="Nhập từ khóa cần tìm" class="searchBox" onfocus="if(this.value==this.defaultValue) this.value=''" onblur="if(this.value=='') this.value=this.defaultValue" onkeypress="return imposeMaxLength(this, 255);" style = "width: 90%"/>
        <span class = "btnSearchPD"></span>
    </li>
    <li>
        <ul class = "ProductList" style = "list-style: none;padding-top: 20px; width: 340px; float:left">
             <li style=" background:  url() no-repeat transparent;"><span style ="font-weight:bold; color: #AB1524">Tên sản phẩm</span><span class = "Price" style = "float:right; font-weight:bold; color: #AB1524">Giá</span></li> 
            <%int counter = 1; %>
            <%foreach (var product in lstProDetail) {%> 
            <% if(counter >= 16){ %>
                 </ul>
                 <ul class = "ProductList" style = "list-style: none;padding-top: 20px; width: 340px; float:left">
                    <li style=" background:  url() no-repeat transparent;"><span style ="font-weight:bold; color: #AB1524">Tên sản phẩm</span><span class = "Price" style = "float:right; font-weight:bold; color: #AB1524">Giá</span></li> 
                     <%counter = 1; %>
            <%} else {  %>   
            <li id = "<%=product.ProID %>" rel="<%=product.Unit %>"><span class = "Name"><%=product.Name %></span><span class = "Price" style = "float:right"><%=product.Price %></span></li> 
            <%counter++; %>
                 <%} %>
            <%} %>
        </ul>
    </li>
    <li></li>
</ul>
<div style = "position: absolute; bottom: 20px;"><span id = "btnOkPD" class = "btnPD">Đồng ý</span><span class = "btnPD" id = "btnCancelPD">Hủy</span></div>

